/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package somsinfinal;

/**
 *
 * @Somsin Corp.
 */
import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author Somsin Corp.
 */
public class Bullet {

    int x, y;
    Image img;
  //  Image img2;
    boolean visible;

    public Bullet(int startX, int startY) {
        x = startX;
        y = startY;
        ImageIcon i = new ImageIcon("./images/imagesMore/bullet.png");
   //   ImageIcon i = new ImageIcon("./images/cow.png");
   //   ImageIcon i = new ImageIcon("./images/rocket.png");
        img = i.getImage();

        visible = true;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public Image getImage() {
        return img;
    }

    public boolean getVisible() {
        return visible;
    }

    public void move() {
        x = x + 40;
        if (x > 800) {
            visible = false;
        }
    }
}